package org.jeecg.modules.cosmetic.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.cosmetic.entity.TToxicological;
import org.jeecg.modules.cosmetic.mapper.TToxicologicalMapper;
import org.jeecg.modules.cosmetic.service.ITToxicologicalService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 毒理数据库表 服务实现类
 * </p>
 *
 * @author lq
 * @since 2024-02-29 13:57:47
 */
@DS("cosmetic-datasource")
@Service
public class TToxicologicalServiceImpl extends ServiceImpl<TToxicologicalMapper, TToxicological> implements ITToxicologicalService {

    @Resource
    private TToxicologicalMapper toxicologicalMapper;

    @Override
    public Page<TToxicological> getPage(IPage<TToxicological> page, String params, Integer type) {
        return toxicologicalMapper.getPage(page, params, type);
    }

    @Override
    public String getNumber() {
        return toxicologicalMapper.getNumber();
    }
}
